<div class="header">{if $UserData.id_wp_admin}Edycja użytkownika: {$UserData.login}{else}Dodaj użytkownika{/if}</div>
    
<form action="{url value=user}" method="post">
{if $UserData.id_wp_admin}
<input type="hidden" name="updateid" value="{$UserData.id_wp_admin}" />
{else}
<input type="hidden" name="newuser" value="1" />
{/if}
<br />
<table class="adminTable" align="center" style="width: 550px;" >

<tr><td class="header" colspan="2">Logowanie</td></tr>
<tr>
<td>Login: </td><td><input class="input" type="text" name="login" value="{$UserData.login}" {if $UserData.id_wp_admin}disabled="disabled"{/if} /></td>
</tr>
<tr>
<td>Hasło: </td><td><input class="input" type="password" name="passwd" /></td>
</tr>
<tr>
<td>Powtórz hasło: </td><td><input class="input" type="password" name="passwdcf" /></td>
</tr>
<tr><td class="header" colspan="2">Dane osobowe</td></tr>
<tr>
<td>Imię i Nazwisko : </td><td><input class="input" type="text" name="name" value="{$UserData.name}" /></td>
</tr>
<tr>
<td>Email : </td><td><input class="input" type="text" name="email" value="{$UserData.email}" /></td>
</tr>
<tr><td class="header" colspan="2">Uprawnienia</td></tr>
<tr>
<td>Rola : </td><td>
<select class="input" style="width: 100px;" name="role">
{section name=r loop=$UserRole}
<option value="{$UserRole[r].role}" {if $UserRole[r].role==$UserData.role}selected="selected"{/if}>{$UserRole[r].role}</option>
{/section}
</select>
</td>
</tr>
<tr>
<td></td><td><input type="submit" value="Zapisz" /></td>
</tr>
</table>
</form>